how to measure the length of a pencil by using a ruler